\(\int \frac {A+B x}{\sqrt {x} (b x+c x^2)^{3/2}} \, dx\) [238]

   Optimal result
   Rubi [A] (verified)
   Mathematica [A] (verified)
   Maple [A] (verified)
   Fricas [A] (verification not implemented)
   Sympy [F]
   Maxima [F]
   Giac [A] (verification not implemented)
   Mupad [F(-1)]

Optimal result

Integrand size = 24, antiderivative size = 97 \[ \int \frac {A+B x}{\sqrt {x} \left (b x+c x^2\right )^{3/2}} \, dx=-\frac {A}{b \sqrt {x} \sqrt {b x+c x^2}}+\frac {(2 b B-3 A c) \sqrt {x}}{b^2 \sqrt {b x+c x^2}}-\frac {(2 b B-3 A c) \text {arctanh}\left (\frac {\sqrt {b x+c x^2}}{\sqrt {b} \sqrt {x}}\right )}{b^{5/2}} \]

[Out]

-(-3*A*c+2*B*b)*arctanh((c*x^2+b*x)^(1/2)/b^(1/2)/x^(1/2))/b^(5/2)-A/b/x^(1/2)/(c*x^2+b*x)^(1/2)+(-3*A*c+2*B*b
)*x^(1/2)/b^2/(c*x^2+b*x)^(1/2)

Rubi [A] (verified)

Time = 0.05 (sec) , antiderivative size = 97, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {806, 680, 674, 213} \[ \int \frac {A+B x}{\sqrt {x} \left (b x+c x^2\right )^{3/2}} \, dx=-\frac {(2 b B-3 A c) \text {arctanh}\left (\frac {\sqrt {b x+c x^2}}{\sqrt {b} \sqrt {x}}\right )}{b^{5/2}}+\frac {\sqrt {x} (2 b B-3 A c)}{b^2 \sqrt {b x+c x^2}}-\frac {A}{b \sqrt {x} \sqrt {b x+c x^2}} \]

[In]

Int[(A + B*x)/(Sqrt[x]*(b*x + c*x^2)^(3/2)),x]

[Out]

-(A/(b*Sqrt[x]*Sqrt[b*x + c*x^2])) + ((2*b*B - 3*A*c)*Sqrt[x])/(b^2*Sqrt[b*x + c*x^2]) - ((2*b*B - 3*A*c)*ArcT
anh[Sqrt[b*x + c*x^2]/(Sqrt[b]*Sqrt[x])])/b^(5/2)

Rule 213

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(-(Rt[-a, 2]*Rt[b, 2])^(-1))*ArcTanh[Rt[b, 2]*(x/Rt[-a, 2])]
, x] /; FreeQ[{a, b}, x] && NegQ[a/b] && (LtQ[a, 0] || GtQ[b, 0])

Rule 674

Int[1/(Sqrt[(d_.) + (e_.)*(x_)]*Sqrt[(a_.) + (b_.)*(x_) + (c_.)*(x_)^2]), x_Symbol] :> Dist[2*e, Subst[Int[1/(
2*c*d - b*e + e^2*x^2), x], x, Sqrt[a + b*x + c*x^2]/Sqrt[d + e*x]], x] /; FreeQ[{a, b, c, d, e}, x] && NeQ[b^
2 - 4*a*c, 0] && EqQ[c*d^2 - b*d*e + a*e^2, 0]

Rule 680

Int[((d_.) + (e_.)*(x_))^(m_)*((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_), x_Symbol] :> Simp[(2*c*d - b*e)*(d + e
*x)^m*((a + b*x + c*x^2)^(p + 1)/(e*(p + 1)*(b^2 - 4*a*c))), x] - Dist[(2*c*d - b*e)*((m + 2*p + 2)/((p + 1)*(
b^2 - 4*a*c))), Int[(d + e*x)^(m - 1)*(a + b*x + c*x^2)^(p + 1), x], x] /; FreeQ[{a, b, c, d, e}, x] && NeQ[b^
2 - 4*a*c, 0] && EqQ[c*d^2 - b*d*e + a*e^2, 0] && LtQ[p, -1] && LtQ[0, m, 1] && IntegerQ[2*p]

Rule 806

Int[((d_.) + (e_.)*(x_))^(m_)*((f_.) + (g_.)*(x_))*((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_), x_Symbol] :> Simp
[(d*g - e*f)*(d + e*x)^m*((a + b*x + c*x^2)^(p + 1)/((2*c*d - b*e)*(m + p + 1))), x] + Dist[(m*(g*(c*d - b*e)
+ c*e*f) + e*(p + 1)*(2*c*f - b*g))/(e*(2*c*d - b*e)*(m + p + 1)), Int[(d + e*x)^(m + 1)*(a + b*x + c*x^2)^p,
x], x] /; FreeQ[{a, b, c, d, e, f, g, m, p}, x] && NeQ[b^2 - 4*a*c, 0] && EqQ[c*d^2 - b*d*e + a*e^2, 0] && ((L
tQ[m, -1] &&  !IGtQ[m + p + 1, 0]) || (LtQ[m, 0] && LtQ[p, -1]) || EqQ[m + 2*p + 2, 0]) && NeQ[m + p + 1, 0]

Rubi steps \begin{align*} \text {integral}& = -\frac {A}{b \sqrt {x} \sqrt {b x+c x^2}}+\frac {\left (\frac {1}{2} (b B-2 A c)+\frac {1}{2} (b B-A c)\right ) \int \frac {\sqrt {x}}{\left (b x+c x^2\right )^{3/2}} \, dx}{b} \\ & = -\frac {A}{b \sqrt {x} \sqrt {b x+c x^2}}+\frac {(2 b B-3 A c) \sqrt {x}}{b^2 \sqrt {b x+c x^2}}+\frac {(2 b B-3 A c) \int \frac {1}{\sqrt {x} \sqrt {b x+c x^2}} \, dx}{2 b^2} \\ & = -\frac {A}{b \sqrt {x} \sqrt {b x+c x^2}}+\frac {(2 b B-3 A c) \sqrt {x}}{b^2 \sqrt {b x+c x^2}}+\frac {(2 b B-3 A c) \text {Subst}\left (\int \frac {1}{-b+x^2} \, dx,x,\frac {\sqrt {b x+c x^2}}{\sqrt {x}}\right )}{b^2} \\ & = -\frac {A}{b \sqrt {x} \sqrt {b x+c x^2}}+\frac {(2 b B-3 A c) \sqrt {x}}{b^2 \sqrt {b x+c x^2}}-\frac {(2 b B-3 A c) \tanh ^{-1}\left (\frac {\sqrt {b x+c x^2}}{\sqrt {b} \sqrt {x}}\right )}{b^{5/2}} \\ \end{align*}

Mathematica [A] (verified)

Time = 0.11 (sec) , antiderivative size = 81, normalized size of antiderivative = 0.84 \[ \int \frac {A+B x}{\sqrt {x} \left (b x+c x^2\right )^{3/2}} \, dx=\frac {\sqrt {b} (2 b B x-A (b+3 c x))-(2 b B-3 A c) x \sqrt {b+c x} \text {arctanh}\left (\frac {\sqrt {b+c x}}{\sqrt {b}}\right )}{b^{5/2} \sqrt {x} \sqrt {x (b+c x)}} \]

[In]

Integrate[(A + B*x)/(Sqrt[x]*(b*x + c*x^2)^(3/2)),x]

[Out]

(Sqrt[b]*(2*b*B*x - A*(b + 3*c*x)) - (2*b*B - 3*A*c)*x*Sqrt[b + c*x]*ArcTanh[Sqrt[b + c*x]/Sqrt[b]])/(b^(5/2)*
Sqrt[x]*Sqrt[x*(b + c*x)])

Maple [A] (verified)

Time = 0.08 (sec) , antiderivative size = 94, normalized size of antiderivative = 0.97

method result size
default \(\frac {\sqrt {x \left (c x +b \right )}\, \left (3 A \sqrt {c x +b}\, \operatorname {arctanh}\left (\frac {\sqrt {c x +b}}{\sqrt {b}}\right ) c x -2 B \sqrt {c x +b}\, \operatorname {arctanh}\left (\frac {\sqrt {c x +b}}{\sqrt {b}}\right ) b x +2 B \,b^{\frac {3}{2}} x -3 A \sqrt {b}\, c x -A \,b^{\frac {3}{2}}\right )}{x^{\frac {3}{2}} \left (c x +b \right ) b^{\frac {5}{2}}}\) \(94\)
risch \(-\frac {A \left (c x +b \right )}{b^{2} \sqrt {x}\, \sqrt {x \left (c x +b \right )}}-\frac {\left (-\frac {2 \left (3 A c -2 B b \right ) \operatorname {arctanh}\left (\frac {\sqrt {c x +b}}{\sqrt {b}}\right )}{\sqrt {b}}-\frac {2 \left (-2 A c +2 B b \right )}{\sqrt {c x +b}}\right ) \sqrt {c x +b}\, \sqrt {x}}{2 b^{2} \sqrt {x \left (c x +b \right )}}\) \(94\)

[In]

int((B*x+A)/(c*x^2+b*x)^(3/2)/x^(1/2),x,method=_RETURNVERBOSE)

[Out]

(x*(c*x+b))^(1/2)/x^(3/2)*(3*A*(c*x+b)^(1/2)*arctanh((c*x+b)^(1/2)/b^(1/2))*c*x-2*B*(c*x+b)^(1/2)*arctanh((c*x
+b)^(1/2)/b^(1/2))*b*x+2*B*b^(3/2)*x-3*A*b^(1/2)*c*x-A*b^(3/2))/(c*x+b)/b^(5/2)

Fricas [A] (verification not implemented)

none

Time = 0.31 (sec) , antiderivative size = 248, normalized size of antiderivative = 2.56 \[ \int \frac {A+B x}{\sqrt {x} \left (b x+c x^2\right )^{3/2}} \, dx=\left [-\frac {{\left ({\left (2 \, B b c - 3 \, A c^{2}\right )} x^{3} + {\left (2 \, B b^{2} - 3 \, A b c\right )} x^{2}\right )} \sqrt {b} \log \left (-\frac {c x^{2} + 2 \, b x + 2 \, \sqrt {c x^{2} + b x} \sqrt {b} \sqrt {x}}{x^{2}}\right ) + 2 \, {\left (A b^{2} - {\left (2 \, B b^{2} - 3 \, A b c\right )} x\right )} \sqrt {c x^{2} + b x} \sqrt {x}}{2 \, {\left (b^{3} c x^{3} + b^{4} x^{2}\right )}}, \frac {{\left ({\left (2 \, B b c - 3 \, A c^{2}\right )} x^{3} + {\left (2 \, B b^{2} - 3 \, A b c\right )} x^{2}\right )} \sqrt {-b} \arctan \left (\frac {\sqrt {-b} \sqrt {x}}{\sqrt {c x^{2} + b x}}\right ) - {\left (A b^{2} - {\left (2 \, B b^{2} - 3 \, A b c\right )} x\right )} \sqrt {c x^{2} + b x} \sqrt {x}}{b^{3} c x^{3} + b^{4} x^{2}}\right ] \]

[In]

integrate((B*x+A)/(c*x^2+b*x)^(3/2)/x^(1/2),x, algorithm="fricas")

[Out]

[-1/2*(((2*B*b*c - 3*A*c^2)*x^3 + (2*B*b^2 - 3*A*b*c)*x^2)*sqrt(b)*log(-(c*x^2 + 2*b*x + 2*sqrt(c*x^2 + b*x)*s
qrt(b)*sqrt(x))/x^2) + 2*(A*b^2 - (2*B*b^2 - 3*A*b*c)*x)*sqrt(c*x^2 + b*x)*sqrt(x))/(b^3*c*x^3 + b^4*x^2), (((
2*B*b*c - 3*A*c^2)*x^3 + (2*B*b^2 - 3*A*b*c)*x^2)*sqrt(-b)*arctan(sqrt(-b)*sqrt(x)/sqrt(c*x^2 + b*x)) - (A*b^2
 - (2*B*b^2 - 3*A*b*c)*x)*sqrt(c*x^2 + b*x)*sqrt(x))/(b^3*c*x^3 + b^4*x^2)]

Sympy [F]

\[ \int \frac {A+B x}{\sqrt {x} \left (b x+c x^2\right )^{3/2}} \, dx=\int \frac {A + B x}{\sqrt {x} \left (x \left (b + c x\right )\right )^{\frac {3}{2}}}\, dx \]

[In]

integrate((B*x+A)/(c*x**2+b*x)**(3/2)/x**(1/2),x)

[Out]

Integral((A + B*x)/(sqrt(x)*(x*(b + c*x))**(3/2)), x)

Maxima [F]

\[ \int \frac {A+B x}{\sqrt {x} \left (b x+c x^2\right )^{3/2}} \, dx=\int { \frac {B x + A}{{\left (c x^{2} + b x\right )}^{\frac {3}{2}} \sqrt {x}} \,d x } \]

[In]

integrate((B*x+A)/(c*x^2+b*x)^(3/2)/x^(1/2),x, algorithm="maxima")

[Out]

integrate((B*x + A)/((c*x^2 + b*x)^(3/2)*sqrt(x)), x)

Giac [A] (verification not implemented)

none

Time = 0.33 (sec) , antiderivative size = 87, normalized size of antiderivative = 0.90 \[ \int \frac {A+B x}{\sqrt {x} \left (b x+c x^2\right )^{3/2}} \, dx=\frac {{\left (2 \, B b - 3 \, A c\right )} \arctan \left (\frac {\sqrt {c x + b}}{\sqrt {-b}}\right )}{\sqrt {-b} b^{2}} + \frac {2 \, {\left (c x + b\right )} B b - 2 \, B b^{2} - 3 \, {\left (c x + b\right )} A c + 2 \, A b c}{{\left ({\left (c x + b\right )}^{\frac {3}{2}} - \sqrt {c x + b} b\right )} b^{2}} \]

[In]

integrate((B*x+A)/(c*x^2+b*x)^(3/2)/x^(1/2),x, algorithm="giac")

[Out]

(2*B*b - 3*A*c)*arctan(sqrt(c*x + b)/sqrt(-b))/(sqrt(-b)*b^2) + (2*(c*x + b)*B*b - 2*B*b^2 - 3*(c*x + b)*A*c +
 2*A*b*c)/(((c*x + b)^(3/2) - sqrt(c*x + b)*b)*b^2)

Mupad [F(-1)]

Timed out. \[ \int \frac {A+B x}{\sqrt {x} \left (b x+c x^2\right )^{3/2}} \, dx=\int \frac {A+B\,x}{\sqrt {x}\,{\left (c\,x^2+b\,x\right )}^{3/2}} \,d x \]

[In]

int((A + B*x)/(x^(1/2)*(b*x + c*x^2)^(3/2)),x)

[Out]

int((A + B*x)/(x^(1/2)*(b*x + c*x^2)^(3/2)), x)